package com.park.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.park.model.Permissions;

public interface PermissionsMapper {
    int deleteByPrimaryKey(long id);

    int insert(Permissions record);

    int insertSelective(Permissions record);

    Permissions selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Permissions record);

    int updateByPrimaryKey(Permissions record);

	List<Permissions> selectList(@Param("startPage")int startPage, @Param("pageSize")int pageSize);

	List<String> getByUserId(@Param("userId")Long id);

	List<Permissions> getByName(@Param("userName")String userName);

	List<Permissions> getByRoleName(@Param("userName")String userName);
}